#include "receiver.h"

receiver::receiver()
{

}

receiver::~receiver()
{
    
}

bool receiver::handle(const carrier* msg)
{
    auto end = high_resolution_clock::now();
    std::chrono::duration<double, std::milli> elapsed = end - msg->start_time;
    cout << "handle--> id: " << msg->id << " name: " << msg->name << ", 从开始发送消息到接受消息耗时： " << elapsed.count() << " ms." << endl;
    return true;
}